"use strict";
cc._RF.push(module, 'f4f6f14PR1OxoiHpiSwN2QT', 'Frontgame');
// script/Frontgame.js

"use strict";

exports.__esModule = true;
exports["default"] = void 0;

var _class;

function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }

// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
var _cc$_decorator = cc._decorator,
    ccclass = _cc$_decorator.ccclass,
    property = _cc$_decorator.property;

var Frontgame = ccclass(_class = /*#__PURE__*/function (_cc$Component) {
  _inheritsLoose(Frontgame, _cc$Component);

  function Frontgame() {
    return _cc$Component.apply(this, arguments) || this;
  }

  var _proto = Frontgame.prototype;

  // LIFE-CYCLE CALLBACKS:
  // onLoad () {}
  _proto.start = function start() {};

  _proto.click_Star = function click_Star(event, customEventData) {
    cc.log("点击消灭星星");
    cc.director.loadScene("StarGame");
    this.node.removeFromParent();
    this.node.destroy();
  };

  return Frontgame;
}(cc.Component)) || _class;

exports["default"] = Frontgame;
module.exports = exports["default"];

cc._RF.pop();